package com.ruoyi.common.core.domain.dto;

import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

/**
 * 车辆驶入驶出数据
 */
@Data
public class VehicleInOutDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 1-驶入 2-驶出
     */
    private InOutEnums inOut;

    /**
     * 车辆序号
     */
    private Integer vehicleId;

    /**
     * 数据唯一标识
     */
    private String uniqueId;

    /**
     * 检测单号
     */
    private String checkNo;

    /**
     * 检测时间
     */
    private String checkTime;

    /**
     * 车道号
     */
    private Integer laneNo;

    /**
     * 车辆方向：1-正 0-逆
     */
    private Integer drivingDirection;

    @Getter
    public enum InOutEnums {
        IN(1, "驶入"),
        OUT(2, "驶出"),
        ;

        private final Integer code;
        private final String info;

        InOutEnums(Integer code, String info) {
            this.code = code;
            this.info = info;
        }
    }
}
